package com.huike.data.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {
    @RequestMapping ("text")
    public Map<String, Object> getData(){
        Map<String,Object> map = new HashMap<>(16);//java技术为啥要指定一个值

        map.put("code",0);
        System.out.println("代码在这");
        map.put("msg","这");
        return map;
    }

}
